import {
  DynamicSamplingReservedBudgetCategoryFixture,
  SeerReservedBudgetCategoryFixture,
} from 'getsentry-test/fixtures/reservedBudget';

import type {DataCategory} from 'sentry/types/core';

import {ANNUAL, MONTHLY, UNLIMITED_RESERVED} from 'getsentry/constants';
import {CheckoutType, type Plan, ReservedBudgetCategoryType} from 'getsentry/types';

const AM3_CHECKOUT_CATEGORIES = [
  'errors',
  'replays',
  'attachments',
  'monitorSeats',
  'spans',
  'uptime',
] as DataCategory[];

const AM3_ONDEMAND_CATEGORIES = [
  ...AM3_CHECKOUT_CATEGORIES,
  'profileDuration',
  'profileDurationUI',
  'seerAutofix',
  'seerScanner',
] as DataCategory[];

const AM3_CATEGORIES = [...AM3_ONDEMAND_CATEGORIES] as DataCategory[];

const AM3_DS_CHECKOUT_CATEGORIES = [
  ...AM3_CHECKOUT_CATEGORIES,
  'spansIndexed',
] as DataCategory[];
const AM3_DS_CATEGORIES = [
  ...AM3_DS_CHECKOUT_CATEGORIES,
  'profileDuration',
  'profileDurationUI',
  'seerAutofix',
  'seerScanner',
] as DataCategory[];

const AM3_AVAILABLE_RESERVED_BUDGET_TYPES = {
  [ReservedBudgetCategoryType.SEER]: SeerReservedBudgetCategoryFixture({}),
};

const AM3_DS_AVAILABLE_RESERVED_BUDGET_TYPES = {
  ...AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  [ReservedBudgetCategoryType.DYNAMIC_SAMPLING]:
    DynamicSamplingReservedBudgetCategoryFixture({}),
};

const AM3_CATEGORY_DISPLAY_NAMES = {
  errors: {singular: 'error', plural: 'errors'},
  replays: {singular: 'replay', plural: 'replays'},
  attachments: {singular: 'attachment', plural: 'attachments'},
  monitorSeats: {singular: 'cron monitor', plural: 'cron monitors'},
  spans: {plural: 'spans', singular: 'span'},
  profileDuration: {
    plural: 'continuous profile hours',
    singular: 'continuous profile hour',
  },
  profileDurationUI: {plural: 'UI profile hours', singular: 'UI profile hour'},
  uptime: {singular: 'uptime monitor', plural: 'uptime monitors'},
  seerAutofix: {singular: 'issue fix', plural: 'issue fixes'},
  seerScanner: {singular: 'issue scan', plural: 'issue scans'},
};

const AM3_DS_CATEGORY_DISPLAY_NAMES = {
  ...AM3_CATEGORY_DISPLAY_NAMES,
  spansIndexed: {plural: 'stored spans', singular: 'stored span'},
};

const AM3_FREE_FEATURES = [
  'advanced-search',
  'event-attachments',
  'performance-view',
  'integrations-stacktrace-link',
  'session-replay',
  'monitor-seat-billing',
  'spans-usage-tracking',
  'continuous-profiling-stats',
  'user-spend-notifications-settings',
  'profiling-view',
  'uptime',
];

const AM3_TEAM_FEATURES = [
  ...AM3_FREE_FEATURES,
  'codecov-integration',
  'crash-rate-alerts',
  'dashboards-basic',
  'discover-basic',
  'incidents',
  'integrations-issue-basic',
  'integrations-issue-sync',
  'integrations-alert-rule',
  'integrations-chat-unfurl',
  'integrations-incident-management',
  'sso-basic',
  'weekly-reports',
  'seer-billing',
];

const AM3_BUSINESS_FEATURES = [
  ...AM3_TEAM_FEATURES,
  'anomaly-detection-alerts',
  'app-store-connect-multiple',
  'baa',
  'change-alerts',
  'custom-inbound-filters',
  'custom-symbol-sources',
  'dashboards-edit',
  'data-forwarding',
  'discard-groups',
  'discover-query',
  'global-views',
  'indexed-spans-extraction',
  'insights-initial-modules',
  'insights-addon-modules',
  'integrations-codeowners',
  'integrations-enterprise-alert-rule',
  'integrations-enterprise-incident-management',
  'integrations-event-hooks',
  'integrations-ticket-rules',
  'rate-limits',
  'relay',
  'sso-saml2',
  'team-insights',
  'team-roles',
];

const AM3_TRIAL_FEATURES = AM3_BUSINESS_FEATURES.filter(
  feature => feature !== 'sso-saml2' && feature !== 'baa'
);

const AM3_DS_FEATURES = [
  ...AM3_BUSINESS_FEATURES,
  'dynamic-sampling',
  'dynamic-sampling-custom',
];

export const SEER_TIERS_DEVELOPER = {
  seerAutofix: [
    {
      events: 0,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 0,
    },
  ],
  seerScanner: [
    {
      events: 0,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 0,
    },
  ],
};

export const SEER_TIERS_TRIAL_OR_ENTERPRISE = {
  seerAutofix: [
    {
      events: -2,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 0,
    },
  ],
  seerScanner: [
    {
      events: -2,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 0,
    },
  ],
};

export const SEER_TIERS = {
  seerAutofix: [
    {
      events: -2,
      unitPrice: 0,
      price: 20_00,
      onDemandPrice: 125,
    },
    {
      events: 0,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 125,
    },
  ],
  seerScanner: [
    {
      events: -2,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 1.25,
    },
    {
      events: 0,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 1.25,
    },
  ],
};

export const SEER_TIERS_ANNUAL = {
  seerAutofix: [
    {
      events: -2,
      unitPrice: 0,
      price: 216_00,
      onDemandPrice: 125,
    },
    {
      events: 0,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 125,
    },
  ],
  seerScanner: [
    {
      events: -2,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 1.25,
    },
    {
      events: 0,
      unitPrice: 0,
      price: 0,
      onDemandPrice: 1.25,
    },
  ],
};

const BUDGET_TERM = 'pay-as-you-go';

const AM3_PLANS: Record<string, Plan> = {
  am3_business: {
    id: 'am3_business',
    name: 'Business',
    description: '',
    price: 8900,
    basePrice: 8900,
    totalPrice: 8900,
    trialPlan: null,
    maxMembers: null,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: true,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_BUSINESS_FEATURES,
    billingInterval: MONTHLY,
    contractInterval: MONTHLY,
    onDemandEventPrice: 0.0,
    allowOnDemand: true,
    reservedMinimum: 50000,
    allowAdditionalReservedEvents: false,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CHECKOUT_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 50000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 100000,
          unitPrice: 0.089,
          price: 4500,
          onDemandPrice: 0.1113,
        },
        {
          events: 300000,
          unitPrice: 0.05,
          price: 14500,
          onDemandPrice: 0.0625,
        },
        {
          events: 500000,
          unitPrice: 0.05,
          price: 24500,
          onDemandPrice: 0.0625,
        },
        {
          events: 1000000,
          unitPrice: 0.03,
          price: 39500,
          onDemandPrice: 0.0375,
        },
        {
          events: 3000000,
          unitPrice: 0.03,
          price: 99500,
          onDemandPrice: 0.0375,
        },
        {
          events: 5000000,
          unitPrice: 0.03,
          price: 159500,
          onDemandPrice: 0.0375,
        },
        {
          events: 10000000,
          unitPrice: 0.03,
          price: 309500,
          onDemandPrice: 0.0375,
        },
        {
          events: 15000000,
          unitPrice: 0.026,
          price: 439500,
          onDemandPrice: 0.0325,
        },
        {
          events: 20000000,
          unitPrice: 0.026,
          price: 569500,
          onDemandPrice: 0.0325,
        },
        {
          events: 25000000,
          unitPrice: 0.024,
          price: 689500,
          onDemandPrice: 0.03,
        },
        {
          events: 30000000,
          unitPrice: 0.024,
          price: 809500,
          onDemandPrice: 0.03,
        },
        {
          events: 35000000,
          unitPrice: 0.024,
          price: 929500,
          onDemandPrice: 0.03,
        },
        {
          events: 40000000,
          unitPrice: 0.024,
          price: 1049500,
          onDemandPrice: 0.03,
        },
        {
          events: 45000000,
          unitPrice: 0.024,
          price: 1169500,
          onDemandPrice: 0.03,
        },
        {
          events: 50000000,
          unitPrice: 0.024,
          price: 1289500,
          onDemandPrice: 0.03,
        },
        {
          events: 100000,
          unitPrice: 0.089,
          price: 4500,
          onDemandPrice: 0.1157,
        },
        {
          events: 200000,
          unitPrice: 0.05,
          price: 9500,
          onDemandPrice: 0.065,
        },
        {
          events: 300000,
          unitPrice: 0.05,
          price: 14500,
          onDemandPrice: 0.065,
        },
        {
          events: 400000,
          unitPrice: 0.05,
          price: 19500,
          onDemandPrice: 0.065,
        },
        {
          events: 500000,
          unitPrice: 0.05,
          price: 24500,
          onDemandPrice: 0.065,
        },
        {
          events: 1000000,
          unitPrice: 0.03,
          price: 39500,
          onDemandPrice: 0.039,
        },
        {
          events: 1500000,
          unitPrice: 0.03,
          price: 54500,
          onDemandPrice: 0.039,
        },
        {
          events: 2000000,
          unitPrice: 0.03,
          price: 69500,
          onDemandPrice: 0.039,
        },
        {
          events: 3000000,
          unitPrice: 0.03,
          price: 99500,
          onDemandPrice: 0.039,
        },
        {
          events: 4000000,
          unitPrice: 0.03,
          price: 129500,
          onDemandPrice: 0.039,
        },
        {
          events: 5000000,
          unitPrice: 0.03,
          price: 159500,
          onDemandPrice: 0.039,
        },
        {
          events: 6000000,
          unitPrice: 0.03,
          price: 189500,
          onDemandPrice: 0.039,
        },
        {
          events: 7000000,
          unitPrice: 0.03,
          price: 219500,
          onDemandPrice: 0.039,
        },
        {
          events: 8000000,
          unitPrice: 0.03,
          price: 249500,
          onDemandPrice: 0.039,
        },
        {
          events: 9000000,
          unitPrice: 0.03,
          price: 279500,
          onDemandPrice: 0.039,
        },
        {
          events: 10000000,
          unitPrice: 0.03,
          price: 309500,
          onDemandPrice: 0.039,
        },
        {
          events: 11000000,
          unitPrice: 0.0251,
          price: 334500,
          onDemandPrice: 0.0326,
        },
        {
          events: 12000000,
          unitPrice: 0.0251,
          price: 359500,
          onDemandPrice: 0.0326,
        },
        {
          events: 13000000,
          unitPrice: 0.0251,
          price: 384500,
          onDemandPrice: 0.0326,
        },
        {
          events: 14000000,
          unitPrice: 0.0251,
          price: 409500,
          onDemandPrice: 0.0326,
        },
        {
          events: 15000000,
          unitPrice: 0.0251,
          price: 434500,
          onDemandPrice: 0.0326,
        },
        {
          events: 16000000,
          unitPrice: 0.0251,
          price: 459500,
          onDemandPrice: 0.0326,
        },
        {
          events: 17000000,
          unitPrice: 0.0251,
          price: 484500,
          onDemandPrice: 0.0326,
        },
        {
          events: 18000000,
          unitPrice: 0.0251,
          price: 509500,
          onDemandPrice: 0.0326,
        },
        {
          events: 19000000,
          unitPrice: 0.0251,
          price: 534500,
          onDemandPrice: 0.0326,
        },
        {
          events: 20000000,
          unitPrice: 0.0251,
          price: 559500,
          onDemandPrice: 0.0326,
        },
        {
          events: 21000000,
          unitPrice: 0.0144,
          price: 573900,
          onDemandPrice: 0.0187,
        },
        {
          events: 22000000,
          unitPrice: 0.0144,
          price: 588300,
          onDemandPrice: 0.0187,
        },
        {
          events: 23000000,
          unitPrice: 0.0144,
          price: 602700,
          onDemandPrice: 0.0187,
        },
        {
          events: 24000000,
          unitPrice: 0.0144,
          price: 617100,
          onDemandPrice: 0.0187,
        },
        {
          events: 25000000,
          unitPrice: 0.0144,
          price: 631500,
          onDemandPrice: 0.0187,
        },
        {
          events: 30000000,
          unitPrice: 0.0144,
          price: 703500,
          onDemandPrice: 0.0187,
        },
        {
          events: 35000000,
          unitPrice: 0.0144,
          price: 775500,
          onDemandPrice: 0.0187,
        },
        {
          events: 40000000,
          unitPrice: 0.0144,
          price: 847500,
          onDemandPrice: 0.0187,
        },
        {
          events: 45000000,
          unitPrice: 0.0144,
          price: 919500,
          onDemandPrice: 0.0187,
        },
        {
          events: 50000000,
          unitPrice: 0.0144,
          price: 991500,
          onDemandPrice: 0.0187,
        },
      ],
      replays: [
        {
          events: 50,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 5000,
          unitPrice: 0.3,
          price: 1500,
          onDemandPrice: 0.375,
        },
        {
          events: 10000,
          unitPrice: 0.285,
          price: 2900,
          onDemandPrice: 0.3563,
        },
        {
          events: 25000,
          unitPrice: 0.285,
          price: 7200,
          onDemandPrice: 0.3563,
        },
        {
          events: 50000,
          unitPrice: 0.285,
          price: 14300,
          onDemandPrice: 0.3563,
        },
        {
          events: 75000,
          unitPrice: 0.285,
          price: 21400,
          onDemandPrice: 0.3563,
        },
        {
          events: 100000,
          unitPrice: 0.285,
          price: 28500,
          onDemandPrice: 0.3563,
        },
        {
          events: 300000,
          unitPrice: 0.2565,
          price: 79900,
          onDemandPrice: 0.3206,
        },
        {
          events: 500000,
          unitPrice: 0.2565,
          price: 131300,
          onDemandPrice: 0.3206,
        },
        {
          events: 1000000,
          unitPrice: 0.2309,
          price: 257200,
          onDemandPrice: 0.2886,
        },
        {
          events: 2000000,
          unitPrice: 0.2309,
          price: 488200,
          onDemandPrice: 0.2886,
        },
        {
          events: 3000000,
          unitPrice: 0.2309,
          price: 719200,
          onDemandPrice: 0.2886,
        },
        {
          events: 4000000,
          unitPrice: 0.2309,
          price: 950200,
          onDemandPrice: 0.2886,
        },
        {
          events: 5000000,
          unitPrice: 0.1962,
          price: 1163800,
          onDemandPrice: 0.2453,
        },
        {
          events: 6000000,
          unitPrice: 0.1962,
          price: 1360000,
          onDemandPrice: 0.2453,
        },
        {
          events: 7000000,
          unitPrice: 0.1962,
          price: 1556200,
          onDemandPrice: 0.2453,
        },
        {
          events: 8000000,
          unitPrice: 0.1962,
          price: 1752400,
          onDemandPrice: 0.2453,
        },
        {
          events: 9000000,
          unitPrice: 0.1962,
          price: 1948600,
          onDemandPrice: 0.2453,
        },
        {
          events: 10000000,
          unitPrice: 0.1962,
          price: 2144800,
          onDemandPrice: 0.2453,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 25.0,
          price: 0,
          onDemandPrice: 31.25,
        },
        {
          events: 25,
          unitPrice: 25.0,
          price: 600,
          onDemandPrice: 31.25,
        },
        {
          events: 50,
          unitPrice: 25.0,
          price: 1200,
          onDemandPrice: 31.25,
        },
        {
          events: 75,
          unitPrice: 25.0,
          price: 1800,
          onDemandPrice: 31.25,
        },
        {
          events: 100,
          unitPrice: 25.0,
          price: 2400,
          onDemandPrice: 31.25,
        },
        {
          events: 200,
          unitPrice: 25.0,
          price: 4900,
          onDemandPrice: 31.25,
        },
        {
          events: 300,
          unitPrice: 25.0,
          price: 7400,
          onDemandPrice: 31.25,
        },
        {
          events: 400,
          unitPrice: 25.0,
          price: 9900,
          onDemandPrice: 31.25,
        },
        {
          events: 500,
          unitPrice: 25.0,
          price: 12400,
          onDemandPrice: 31.25,
        },
        {
          events: 600,
          unitPrice: 25.0,
          price: 14900,
          onDemandPrice: 31.25,
        },
        {
          events: 700,
          unitPrice: 25.0,
          price: 17400,
          onDemandPrice: 31.25,
        },
        {
          events: 800,
          unitPrice: 25.0,
          price: 19900,
          onDemandPrice: 31.25,
        },
        {
          events: 900,
          unitPrice: 25.0,
          price: 22400,
          onDemandPrice: 31.25,
        },
        {
          events: 1000,
          unitPrice: 25.0,
          price: 24900,
          onDemandPrice: 31.25,
        },
      ],
      monitorSeats: [
        {
          events: 1,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      uptime: [
        {
          events: 1,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      spans: [
        {
          events: 10000000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 20000000,
          unitPrice: 0.00032,
          price: 3200,
          onDemandPrice: 0.0004,
        },
        {
          events: 50000000,
          unitPrice: 0.0003,
          price: 12800,
          onDemandPrice: 0.0004,
        },
        {
          events: 100000000,
          unitPrice: 0.0003,
          price: 28800,
          onDemandPrice: 0.0004,
        },
        {
          events: 200000000,
          unitPrice: 0.0003,
          price: 57800,
          onDemandPrice: 0.0004,
        },
        {
          events: 300000000,
          unitPrice: 0.0003,
          price: 86800,
          onDemandPrice: 0.0004,
        },
        {
          events: 400000000,
          unitPrice: 0.0003,
          price: 115800,
          onDemandPrice: 0.0004,
        },
        {
          events: 500000000,
          unitPrice: 0.0003,
          price: 144800,
          onDemandPrice: 0.0004,
        },
        {
          events: 600000000,
          unitPrice: 0.0003,
          price: 173800,
          onDemandPrice: 0.0004,
        },
        {
          events: 700000000,
          unitPrice: 0.0003,
          price: 202800,
          onDemandPrice: 0.0004,
        },
        {
          events: 800000000,
          unitPrice: 0.0003,
          price: 231800,
          onDemandPrice: 0.0004,
        },
        {
          events: 900000000,
          unitPrice: 0.0003,
          price: 260800,
          onDemandPrice: 0.0004,
        },
        {
          events: 1000000000,
          unitPrice: 0.0003,
          price: 289800,
          onDemandPrice: 0.0004,
        },
        {
          events: 2000000000,
          unitPrice: 0.0003,
          price: 579800,
          onDemandPrice: 0.0004,
        },
        {
          events: 3000000000,
          unitPrice: 0.0003,
          price: 869800,
          onDemandPrice: 0.0004,
        },
        {
          events: 4000000000,
          unitPrice: 0.0003,
          price: 1159800,
          onDemandPrice: 0.0004,
        },
        {
          events: 5000000000,
          unitPrice: 0.0003,
          price: 1449800,
          onDemandPrice: 0.0004,
        },
        {
          events: 6000000000,
          unitPrice: 0.0003,
          price: 1739800,
          onDemandPrice: 0.0004,
        },
        {
          events: 7000000000,
          unitPrice: 0.0003,
          price: 2029800,
          onDemandPrice: 0.0004,
        },
        {
          events: 8000000000,
          unitPrice: 0.0003,
          price: 2319800,
          onDemandPrice: 0.0004,
        },
        {
          events: 9000000000,
          unitPrice: 0.0003,
          price: 2609800,
          onDemandPrice: 0.0004,
        },
        {
          events: 10000000000,
          unitPrice: 0.0003,
          price: 2899800,
          onDemandPrice: 0.0004,
        },
      ],
      ...SEER_TIERS,
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_business_auf: {
    id: 'am3_business_auf',
    name: 'Business',
    description: '',
    price: 96000,
    basePrice: 96000,
    totalPrice: 96000,
    trialPlan: null,
    maxMembers: null,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: true,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_BUSINESS_FEATURES,
    billingInterval: ANNUAL,
    contractInterval: ANNUAL,
    onDemandEventPrice: 0.1157,
    allowOnDemand: true,
    reservedMinimum: 50000,
    allowAdditionalReservedEvents: false,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CHECKOUT_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 50000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 100000,
          unitPrice: 0.089,
          price: 48600,
          onDemandPrice: 0.1113,
        },
        {
          events: 300000,
          unitPrice: 0.05,
          price: 156600,
          onDemandPrice: 0.0625,
        },
        {
          events: 500000,
          unitPrice: 0.05,
          price: 264600,
          onDemandPrice: 0.0625,
        },
        {
          events: 1000000,
          unitPrice: 0.03,
          price: 426600,
          onDemandPrice: 0.0375,
        },
        {
          events: 3000000,
          unitPrice: 0.03,
          price: 1074600,
          onDemandPrice: 0.0375,
        },
        {
          events: 5000000,
          unitPrice: 0.03,
          price: 1722600,
          onDemandPrice: 0.0375,
        },
        {
          events: 10000000,
          unitPrice: 0.03,
          price: 3342600,
          onDemandPrice: 0.0375,
        },
        {
          events: 15000000,
          unitPrice: 0.026,
          price: 4746600,
          onDemandPrice: 0.0325,
        },
        {
          events: 20000000,
          unitPrice: 0.026,
          price: 6150600,
          onDemandPrice: 0.0325,
        },
        {
          events: 25000000,
          unitPrice: 0.024,
          price: 7446600,
          onDemandPrice: 0.03,
        },
        {
          events: 30000000,
          unitPrice: 0.024,
          price: 8742600,
          onDemandPrice: 0.03,
        },
        {
          events: 35000000,
          unitPrice: 0.024,
          price: 10038600,
          onDemandPrice: 0.03,
        },
        {
          events: 40000000,
          unitPrice: 0.024,
          price: 11334600,
          onDemandPrice: 0.03,
        },
        {
          events: 45000000,
          unitPrice: 0.024,
          price: 12630600,
          onDemandPrice: 0.03,
        },
        {
          events: 50000000,
          unitPrice: 0.024,
          price: 13926600,
          onDemandPrice: 0.03,
        },
      ],
      replays: [
        {
          events: 50,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 5000,
          unitPrice: 0.3,
          price: 16200,
          onDemandPrice: 0.375,
        },
        {
          events: 10000,
          unitPrice: 0.285,
          price: 31300,
          onDemandPrice: 0.3563,
        },
        {
          events: 25000,
          unitPrice: 0.285,
          price: 77800,
          onDemandPrice: 0.3563,
        },
        {
          events: 50000,
          unitPrice: 0.285,
          price: 154400,
          onDemandPrice: 0.3563,
        },
        {
          events: 75000,
          unitPrice: 0.285,
          price: 231100,
          onDemandPrice: 0.3563,
        },
        {
          events: 100000,
          unitPrice: 0.285,
          price: 307800,
          onDemandPrice: 0.3563,
        },
        {
          events: 300000,
          unitPrice: 0.2565,
          price: 862900,
          onDemandPrice: 0.3206,
        },
        {
          events: 500000,
          unitPrice: 0.2565,
          price: 1418000,
          onDemandPrice: 0.3206,
        },
        {
          events: 1000000,
          unitPrice: 0.2309,
          price: 2777800,
          onDemandPrice: 0.2886,
        },
        {
          events: 2000000,
          unitPrice: 0.2309,
          price: 5272600,
          onDemandPrice: 0.2886,
        },
        {
          events: 3000000,
          unitPrice: 0.2309,
          price: 7767400,
          onDemandPrice: 0.2886,
        },
        {
          events: 4000000,
          unitPrice: 0.2309,
          price: 10262200,
          onDemandPrice: 0.2886,
        },
        {
          events: 5000000,
          unitPrice: 0.1962,
          price: 12569000,
          onDemandPrice: 0.2453,
        },
        {
          events: 6000000,
          unitPrice: 0.1962,
          price: 14688000,
          onDemandPrice: 0.2453,
        },
        {
          events: 7000000,
          unitPrice: 0.1962,
          price: 16807000,
          onDemandPrice: 0.2453,
        },
        {
          events: 8000000,
          unitPrice: 0.1962,
          price: 18925900,
          onDemandPrice: 0.2453,
        },
        {
          events: 9000000,
          unitPrice: 0.1962,
          price: 21044900,
          onDemandPrice: 0.2453,
        },
        {
          events: 10000000,
          unitPrice: 0.1962,
          price: 23163800,
          onDemandPrice: 0.2453,
        },
      ],
      spans: [
        {
          events: 10000000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 20000000,
          unitPrice: 0.0003,
          price: 34600,
          onDemandPrice: 0.0004,
        },
        {
          events: 50000000,
          unitPrice: 0.0003,
          price: 138200,
          onDemandPrice: 0.0004,
        },
        {
          events: 100000000,
          unitPrice: 0.0003,
          price: 311000,
          onDemandPrice: 0.0004,
        },
        {
          events: 200000000,
          unitPrice: 0.0003,
          price: 624200,
          onDemandPrice: 0.0004,
        },
        {
          events: 300000000,
          unitPrice: 0.0003,
          price: 937400,
          onDemandPrice: 0.0004,
        },
        {
          events: 400000000,
          unitPrice: 0.0003,
          price: 1250600,
          onDemandPrice: 0.0004,
        },
        {
          events: 500000000,
          unitPrice: 0.0003,
          price: 1563800,
          onDemandPrice: 0.0004,
        },
        {
          events: 600000000,
          unitPrice: 0.0003,
          price: 1877000,
          onDemandPrice: 0.0004,
        },
        {
          events: 700000000,
          unitPrice: 0.0003,
          price: 2190200,
          onDemandPrice: 0.0004,
        },
        {
          events: 800000000,
          unitPrice: 0.0003,
          price: 2503400,
          onDemandPrice: 0.0004,
        },
        {
          events: 900000000,
          unitPrice: 0.0003,
          price: 2816600,
          onDemandPrice: 0.0004,
        },
        {
          events: 1000000000,
          unitPrice: 0.0003,
          price: 3129800,
          onDemandPrice: 0.0004,
        },
        {
          events: 2000000000,
          unitPrice: 0.0003,
          price: 6261800,
          onDemandPrice: 0.0004,
        },
        {
          events: 3000000000,
          unitPrice: 0.0003,
          price: 9393800,
          onDemandPrice: 0.0004,
        },
        {
          events: 4000000000,
          unitPrice: 0.0003,
          price: 12525800,
          onDemandPrice: 0.0004,
        },
        {
          events: 5000000000,
          unitPrice: 0.0003,
          price: 15657800,
          onDemandPrice: 0.0004,
        },
        {
          events: 6000000000,
          unitPrice: 0.0003,
          price: 18789800,
          onDemandPrice: 0.0004,
        },
        {
          events: 7000000000,
          unitPrice: 0.0003,
          price: 21921800,
          onDemandPrice: 0.0004,
        },
        {
          events: 8000000000,
          unitPrice: 0.0003,
          price: 25053800,
          onDemandPrice: 0.0004,
        },
        {
          events: 9000000000,
          unitPrice: 0.0003,
          price: 28185800,
          onDemandPrice: 0.0004,
        },
        {
          events: 10000000000,
          unitPrice: 0.0003,
          price: 31317800,
          onDemandPrice: 0.0004,
        },
      ],
      monitorSeats: [
        {
          events: 1,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      uptime: [
        {
          events: 1,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 25.0,
          price: 0,
          onDemandPrice: 31.25,
        },
        {
          events: 25,
          unitPrice: 25.0,
          price: 6500,
          onDemandPrice: 31.25,
        },
        {
          events: 50,
          unitPrice: 25.0,
          price: 13000,
          onDemandPrice: 31.25,
        },
        {
          events: 75,
          unitPrice: 25.0,
          price: 19400,
          onDemandPrice: 31.25,
        },
        {
          events: 100,
          unitPrice: 25.0,
          price: 25900,
          onDemandPrice: 31.25,
        },
        {
          events: 200,
          unitPrice: 25.0,
          price: 52900,
          onDemandPrice: 31.25,
        },
        {
          events: 300,
          unitPrice: 25.0,
          price: 79900,
          onDemandPrice: 31.25,
        },
        {
          events: 400,
          unitPrice: 25.0,
          price: 106900,
          onDemandPrice: 31.25,
        },
        {
          events: 500,
          unitPrice: 25.0,
          price: 133900,
          onDemandPrice: 31.25,
        },
        {
          events: 600,
          unitPrice: 25.0,
          price: 160900,
          onDemandPrice: 31.25,
        },
        {
          events: 700,
          unitPrice: 25.0,
          price: 187900,
          onDemandPrice: 31.25,
        },
        {
          events: 800,
          unitPrice: 25.0,
          price: 214900,
          onDemandPrice: 31.25,
        },
        {
          events: 900,
          unitPrice: 25.0,
          price: 241900,
          onDemandPrice: 31.25,
        },
        {
          events: 1000,
          unitPrice: 25.0,
          price: 268900,
          onDemandPrice: 31.25,
        },
      ],
      ...SEER_TIERS_ANNUAL,
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_business_ent: {
    id: 'am3_business_ent',
    name: 'Enterprise (Business)',
    description: '',
    price: 10_000_00,
    basePrice: 0,
    totalPrice: 10_000_00,
    trialPlan: 'am3_business',
    isTestPlan: false,
    maxMembers: null,
    retentionDays: 90,
    userSelectable: false,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_BUSINESS_FEATURES,
    billingInterval: MONTHLY,
    contractInterval: MONTHLY,
    onDemandEventPrice: 0.1157,
    allowOnDemand: true,
    reservedMinimum: UNLIMITED_RESERVED,
    allowAdditionalReservedEvents: true,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 1_000_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      replays: [
        {
          events: 10_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      spans: [
        {
          events: 100_000_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      monitorSeats: [
        {
          events: 100,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      uptime: [
        {
          events: 100,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      ...SEER_TIERS_TRIAL_OR_ENTERPRISE,
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_business_ent_auf: {
    id: 'am3_business_ent_auf',
    name: 'Enterprise (Business)',
    description: '',
    price: 10_000_00,
    basePrice: 0,
    totalPrice: 10_000_00,
    trialPlan: 'am3_business',
    maxMembers: null,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: false,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_BUSINESS_FEATURES,
    billingInterval: ANNUAL,
    contractInterval: ANNUAL,
    onDemandEventPrice: 0.1157,
    allowOnDemand: true,
    reservedMinimum: UNLIMITED_RESERVED,
    allowAdditionalReservedEvents: true,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CHECKOUT_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 1_000_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      replays: [
        {
          events: 10_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      spans: [
        {
          events: 100_000_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      monitorSeats: [
        {
          events: 100,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      uptime: [
        {
          events: 100,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      ...SEER_TIERS_TRIAL_OR_ENTERPRISE,
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_business_ent_ds: {
    id: 'am3_business_ent_ds',
    name: 'Enterprise (Business)',
    description: '',
    price: 10_000_00,
    basePrice: 0,
    totalPrice: 10_000_00,
    trialPlan: 'am3_business',
    isTestPlan: false,
    maxMembers: null,
    retentionDays: 90,
    userSelectable: false,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_DS_FEATURES,
    billingInterval: MONTHLY,
    contractInterval: MONTHLY,
    onDemandEventPrice: 0.1157,
    allowOnDemand: true,
    reservedMinimum: UNLIMITED_RESERVED,
    allowAdditionalReservedEvents: true,
    categories: AM3_DS_CATEGORIES,
    checkoutCategories: AM3_DS_CATEGORIES,
    availableCategories: AM3_DS_CATEGORIES,
    onDemandCategories: AM3_DS_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 1_000_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      replays: [
        {
          events: 10_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      spans: [
        {
          events: 0,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      spansIndexed: [
        {
          events: 0,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      monitorSeats: [
        {
          events: 100,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      uptime: [
        {
          events: 100,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      ...SEER_TIERS_TRIAL_OR_ENTERPRISE,
    },
    categoryDisplayNames: AM3_DS_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_DS_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_business_ent_ds_auf: {
    id: 'am3_business_ent_ds_auf',
    name: 'Enterprise (Business)',
    description: '',
    price: 10_000_00,
    basePrice: 0,
    totalPrice: 10_000_00,
    trialPlan: 'am3_business',
    maxMembers: null,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: false,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_DS_FEATURES,
    billingInterval: ANNUAL,
    contractInterval: ANNUAL,
    onDemandEventPrice: 0.1157,
    allowOnDemand: true,
    reservedMinimum: UNLIMITED_RESERVED,
    allowAdditionalReservedEvents: true,
    categories: AM3_DS_CATEGORIES,
    checkoutCategories: AM3_DS_CHECKOUT_CATEGORIES,
    availableCategories: AM3_DS_CATEGORIES,
    onDemandCategories: AM3_DS_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 1_000_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      replays: [
        {
          events: 10_000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      spans: [
        {
          events: 0,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      spansIndexed: [
        {
          events: 0,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      monitorSeats: [
        {
          events: 100,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      uptime: [
        {
          events: 100,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0.0,
        },
      ],
      ...SEER_TIERS_TRIAL_OR_ENTERPRISE,
    },
    categoryDisplayNames: AM3_DS_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_DS_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_f: {
    id: 'am3_f',
    name: 'Developer',
    description: '',
    price: 0,
    basePrice: 0,
    totalPrice: 0,
    trialPlan: 'am3_t',
    maxMembers: 1,
    retentionDays: 30,
    isTestPlan: false,
    userSelectable: true,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_FREE_FEATURES,
    billingInterval: MONTHLY,
    contractInterval: MONTHLY,
    onDemandEventPrice: 0,
    allowOnDemand: false,
    reservedMinimum: 5000,
    allowAdditionalReservedEvents: false,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CHECKOUT_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 50_000,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      replays: [
        {
          events: 50,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      monitorSeats: [
        {
          events: 1,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      uptime: [
        {
          events: 1,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      spans: [
        {
          events: 10_000_000,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      ...SEER_TIERS_DEVELOPER,
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_t_ent: {
    id: 'am3_t_ent',
    name: 'Enterprise Trial',
    description: '',
    price: 0,
    basePrice: 0,
    totalPrice: 0,
    trialPlan: null,
    maxMembers: null,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: false,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_BUSINESS_FEATURES,
    billingInterval: MONTHLY,
    contractInterval: MONTHLY,
    onDemandEventPrice: 0,
    allowOnDemand: false,
    reservedMinimum: UNLIMITED_RESERVED,
    allowAdditionalReservedEvents: false,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CHECKOUT_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      replays: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      attachments: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      monitorSeats: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      uptime: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      spans: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      ...SEER_TIERS_TRIAL_OR_ENTERPRISE,
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_t_ent_ds: {
    id: 'am3_t_ent_ds',
    name: 'Enterprise Trial',
    description: '',
    price: 0,
    basePrice: 0,
    totalPrice: 0,
    trialPlan: null,
    maxMembers: null,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: false,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_DS_FEATURES,
    billingInterval: MONTHLY,
    contractInterval: MONTHLY,
    onDemandEventPrice: 0,
    allowOnDemand: false,
    reservedMinimum: UNLIMITED_RESERVED,
    allowAdditionalReservedEvents: false,
    categories: AM3_DS_CATEGORIES,
    checkoutCategories: AM3_DS_CHECKOUT_CATEGORIES,
    availableCategories: AM3_DS_CATEGORIES,
    onDemandCategories: AM3_DS_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      replays: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      attachments: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      monitorSeats: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      uptime: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      spans: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      spansIndexed: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      ...SEER_TIERS_TRIAL_OR_ENTERPRISE,
    },
    categoryDisplayNames: AM3_DS_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_DS_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_team: {
    id: 'am3_team',
    name: 'Team',
    description: '',
    price: 2900,
    basePrice: 2900,
    totalPrice: 2900,
    trialPlan: 'am3_business',
    maxMembers: null,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: true,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_TEAM_FEATURES,
    billingInterval: MONTHLY,
    contractInterval: MONTHLY,
    onDemandEventPrice: 0.0377,
    allowOnDemand: true,
    reservedMinimum: 50000,
    allowAdditionalReservedEvents: false,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CHECKOUT_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 50000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 100000,
          unitPrice: 0.029,
          price: 1500,
          onDemandPrice: 0.0362,
        },
        {
          events: 300000,
          unitPrice: 0.0175,
          price: 5100,
          onDemandPrice: 0.0219,
        },
        {
          events: 500000,
          unitPrice: 0.0175,
          price: 8700,
          onDemandPrice: 0.0219,
        },
        {
          events: 1000000,
          unitPrice: 0.015,
          price: 16200,
          onDemandPrice: 0.0187,
        },
        {
          events: 3000000,
          unitPrice: 0.015,
          price: 46200,
          onDemandPrice: 0.0187,
        },
        {
          events: 5000000,
          unitPrice: 0.015,
          price: 76200,
          onDemandPrice: 0.0187,
        },
        {
          events: 10000000,
          unitPrice: 0.015,
          price: 151200,
          onDemandPrice: 0.0187,
        },
        {
          events: 15000000,
          unitPrice: 0.013,
          price: 216200,
          onDemandPrice: 0.0163,
        },
        {
          events: 20000000,
          unitPrice: 0.013,
          price: 281200,
          onDemandPrice: 0.0163,
        },
        {
          events: 25000000,
          unitPrice: 0.012,
          price: 341200,
          onDemandPrice: 0.015,
        },
        {
          events: 30000000,
          unitPrice: 0.012,
          price: 401200,
          onDemandPrice: 0.015,
        },
        {
          events: 35000000,
          unitPrice: 0.012,
          price: 461200,
          onDemandPrice: 0.015,
        },
        {
          events: 40000000,
          unitPrice: 0.012,
          price: 521200,
          onDemandPrice: 0.015,
        },
        {
          events: 45000000,
          unitPrice: 0.012,
          price: 581200,
          onDemandPrice: 0.015,
        },
        {
          events: 50000000,
          unitPrice: 0.012,
          price: 641200,
          onDemandPrice: 0.015,
        },
      ],
      replays: [
        {
          events: 50,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 5000,
          unitPrice: 0.3,
          price: 1500,
          onDemandPrice: 0.375,
        },
        {
          events: 10000,
          unitPrice: 0.285,
          price: 2900,
          onDemandPrice: 0.3563,
        },
        {
          events: 25000,
          unitPrice: 0.285,
          price: 7200,
          onDemandPrice: 0.3563,
        },
        {
          events: 50000,
          unitPrice: 0.285,
          price: 14300,
          onDemandPrice: 0.3563,
        },
        {
          events: 75000,
          unitPrice: 0.285,
          price: 21400,
          onDemandPrice: 0.3563,
        },
        {
          events: 100000,
          unitPrice: 0.285,
          price: 28500,
          onDemandPrice: 0.3563,
        },
        {
          events: 300000,
          unitPrice: 0.2565,
          price: 79900,
          onDemandPrice: 0.3206,
        },
        {
          events: 500000,
          unitPrice: 0.2565,
          price: 131300,
          onDemandPrice: 0.3206,
        },
        {
          events: 1000000,
          unitPrice: 0.2309,
          price: 257200,
          onDemandPrice: 0.2886,
        },
        {
          events: 2000000,
          unitPrice: 0.2309,
          price: 488200,
          onDemandPrice: 0.2886,
        },
        {
          events: 3000000,
          unitPrice: 0.2309,
          price: 719200,
          onDemandPrice: 0.2886,
        },
        {
          events: 4000000,
          unitPrice: 0.2309,
          price: 950200,
          onDemandPrice: 0.2886,
        },
        {
          events: 5000000,
          unitPrice: 0.1962,
          price: 1163800,
          onDemandPrice: 0.2453,
        },
        {
          events: 6000000,
          unitPrice: 0.1962,
          price: 1360000,
          onDemandPrice: 0.2453,
        },
        {
          events: 7000000,
          unitPrice: 0.1962,
          price: 1556200,
          onDemandPrice: 0.2453,
        },
        {
          events: 8000000,
          unitPrice: 0.1962,
          price: 1752400,
          onDemandPrice: 0.2453,
        },
        {
          events: 9000000,
          unitPrice: 0.1962,
          price: 1948600,
          onDemandPrice: 0.2453,
        },
        {
          events: 10000000,
          unitPrice: 0.1962,
          price: 2144800,
          onDemandPrice: 0.2453,
        },
      ],
      spans: [
        {
          events: 10000000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 20000000,
          unitPrice: 0.0002,
          price: 1600,
          onDemandPrice: 0.0002,
        },
        {
          events: 50000000,
          unitPrice: 0.0002,
          price: 6400,
          onDemandPrice: 0.0002,
        },
        {
          events: 100000000,
          unitPrice: 0.0002,
          price: 14400,
          onDemandPrice: 0.0002,
        },
        {
          events: 200000000,
          unitPrice: 0.0001,
          price: 28400,
          onDemandPrice: 0.0002,
        },
        {
          events: 300000000,
          unitPrice: 0.0001,
          price: 42400,
          onDemandPrice: 0.0002,
        },
        {
          events: 400000000,
          unitPrice: 0.0001,
          price: 56400,
          onDemandPrice: 0.0002,
        },
        {
          events: 500000000,
          unitPrice: 0.0001,
          price: 70400,
          onDemandPrice: 0.0002,
        },
        {
          events: 600000000,
          unitPrice: 0.0001,
          price: 84400,
          onDemandPrice: 0.0002,
        },
        {
          events: 700000000,
          unitPrice: 0.0001,
          price: 98400,
          onDemandPrice: 0.0002,
        },
        {
          events: 800000000,
          unitPrice: 0.0001,
          price: 112400,
          onDemandPrice: 0.0002,
        },
        {
          events: 900000000,
          unitPrice: 0.0001,
          price: 126400,
          onDemandPrice: 0.0002,
        },
        {
          events: 1000000000,
          unitPrice: 0.0001,
          price: 140400,
          onDemandPrice: 0.0002,
        },
        {
          events: 2000000000,
          unitPrice: 0.0001,
          price: 280400,
          onDemandPrice: 0.0002,
        },
        {
          events: 3000000000,
          unitPrice: 0.0001,
          price: 420400,
          onDemandPrice: 0.0002,
        },
        {
          events: 4000000000,
          unitPrice: 0.0001,
          price: 560400,
          onDemandPrice: 0.0002,
        },
        {
          events: 5000000000,
          unitPrice: 0.0001,
          price: 700400,
          onDemandPrice: 0.0002,
        },
        {
          events: 6000000000,
          unitPrice: 0.0001,
          price: 840400,
          onDemandPrice: 0.0002,
        },
        {
          events: 7000000000,
          unitPrice: 0.0001,
          price: 980400,
          onDemandPrice: 0.0002,
        },
        {
          events: 8000000000,
          unitPrice: 0.0001,
          price: 1120400,
          onDemandPrice: 0.0002,
        },
        {
          events: 9000000000,
          unitPrice: 0.0001,
          price: 1260400,
          onDemandPrice: 0.0002,
        },
        {
          events: 10000000000,
          unitPrice: 0.0001,
          price: 1400400,
          onDemandPrice: 0.0002,
        },
      ],
      monitorSeats: [
        {
          events: 1,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      uptime: [
        {
          events: 1,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 25.0,
          price: 0,
          onDemandPrice: 31.25,
        },
        {
          events: 25,
          unitPrice: 25.0,
          price: 600,
          onDemandPrice: 31.25,
        },
        {
          events: 50,
          unitPrice: 25.0,
          price: 1200,
          onDemandPrice: 31.25,
        },
        {
          events: 75,
          unitPrice: 25.0,
          price: 1800,
          onDemandPrice: 31.25,
        },
        {
          events: 100,
          unitPrice: 25.0,
          price: 2400,
          onDemandPrice: 31.25,
        },
        {
          events: 200,
          unitPrice: 25.0,
          price: 4900,
          onDemandPrice: 31.25,
        },
        {
          events: 300,
          unitPrice: 25.0,
          price: 7400,
          onDemandPrice: 31.25,
        },
        {
          events: 400,
          unitPrice: 25.0,
          price: 9900,
          onDemandPrice: 31.25,
        },
        {
          events: 500,
          unitPrice: 25.0,
          price: 12400,
          onDemandPrice: 31.25,
        },
        {
          events: 600,
          unitPrice: 25.0,
          price: 14900,
          onDemandPrice: 31.25,
        },
        {
          events: 700,
          unitPrice: 25.0,
          price: 17400,
          onDemandPrice: 31.25,
        },
        {
          events: 800,
          unitPrice: 25.0,
          price: 19900,
          onDemandPrice: 31.25,
        },
        {
          events: 900,
          unitPrice: 25.0,
          price: 22400,
          onDemandPrice: 31.25,
        },
        {
          events: 1000,
          unitPrice: 25.0,
          price: 24900,
          onDemandPrice: 31.25,
        },
      ],
      ...SEER_TIERS,
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_team_auf: {
    id: 'am3_team_auf',
    name: 'Team',
    description: '',
    price: 31200,
    basePrice: 31200,
    totalPrice: 31200,
    trialPlan: 'am3_business',
    maxMembers: null,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: true,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_TEAM_FEATURES,
    billingInterval: ANNUAL,
    contractInterval: ANNUAL,
    onDemandEventPrice: 0.0377,
    allowOnDemand: true,
    reservedMinimum: 50000,
    allowAdditionalReservedEvents: false,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CHECKOUT_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 50000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 100000,
          unitPrice: 0.029,
          price: 16200,
          onDemandPrice: 0.0362,
        },
        {
          events: 300000,
          unitPrice: 0.0175,
          price: 55100,
          onDemandPrice: 0.0219,
        },
        {
          events: 500000,
          unitPrice: 0.0175,
          price: 94000,
          onDemandPrice: 0.0219,
        },
        {
          events: 1000000,
          unitPrice: 0.015,
          price: 175000,
          onDemandPrice: 0.0187,
        },
        {
          events: 3000000,
          unitPrice: 0.015,
          price: 499000,
          onDemandPrice: 0.0187,
        },
        {
          events: 5000000,
          unitPrice: 0.015,
          price: 823000,
          onDemandPrice: 0.0187,
        },
        {
          events: 10000000,
          unitPrice: 0.015,
          price: 1633000,
          onDemandPrice: 0.0187,
        },
        {
          events: 15000000,
          unitPrice: 0.013,
          price: 2335000,
          onDemandPrice: 0.0163,
        },
        {
          events: 20000000,
          unitPrice: 0.013,
          price: 3037000,
          onDemandPrice: 0.0163,
        },
        {
          events: 25000000,
          unitPrice: 0.012,
          price: 3685000,
          onDemandPrice: 0.015,
        },
        {
          events: 30000000,
          unitPrice: 0.012,
          price: 4333000,
          onDemandPrice: 0.015,
        },
        {
          events: 35000000,
          unitPrice: 0.012,
          price: 4981000,
          onDemandPrice: 0.015,
        },
        {
          events: 40000000,
          unitPrice: 0.012,
          price: 5629000,
          onDemandPrice: 0.015,
        },
        {
          events: 45000000,
          unitPrice: 0.012,
          price: 6277000,
          onDemandPrice: 0.015,
        },
        {
          events: 50000000,
          unitPrice: 0.012,
          price: 6925000,
          onDemandPrice: 0.015,
        },
      ],
      replays: [
        {
          events: 50,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 5000,
          unitPrice: 0.3,
          price: 16200,
          onDemandPrice: 0.375,
        },
        {
          events: 10000,
          unitPrice: 0.285,
          price: 31300,
          onDemandPrice: 0.3563,
        },
        {
          events: 25000,
          unitPrice: 0.285,
          price: 77800,
          onDemandPrice: 0.3563,
        },
        {
          events: 50000,
          unitPrice: 0.285,
          price: 154400,
          onDemandPrice: 0.3563,
        },
        {
          events: 75000,
          unitPrice: 0.285,
          price: 231100,
          onDemandPrice: 0.3563,
        },
        {
          events: 100000,
          unitPrice: 0.285,
          price: 307800,
          onDemandPrice: 0.3563,
        },
        {
          events: 300000,
          unitPrice: 0.2565,
          price: 862900,
          onDemandPrice: 0.3206,
        },
        {
          events: 500000,
          unitPrice: 0.2565,
          price: 1418000,
          onDemandPrice: 0.3206,
        },
        {
          events: 1000000,
          unitPrice: 0.2309,
          price: 2777800,
          onDemandPrice: 0.2886,
        },
        {
          events: 2000000,
          unitPrice: 0.2309,
          price: 5272600,
          onDemandPrice: 0.2886,
        },
        {
          events: 3000000,
          unitPrice: 0.2309,
          price: 7767400,
          onDemandPrice: 0.2886,
        },
        {
          events: 4000000,
          unitPrice: 0.2309,
          price: 10262200,
          onDemandPrice: 0.2886,
        },
        {
          events: 5000000,
          unitPrice: 0.1962,
          price: 12569000,
          onDemandPrice: 0.2453,
        },
        {
          events: 6000000,
          unitPrice: 0.1962,
          price: 14688000,
          onDemandPrice: 0.2453,
        },
        {
          events: 7000000,
          unitPrice: 0.1962,
          price: 16807000,
          onDemandPrice: 0.2453,
        },
        {
          events: 8000000,
          unitPrice: 0.1962,
          price: 18925900,
          onDemandPrice: 0.2453,
        },
        {
          events: 9000000,
          unitPrice: 0.1962,
          price: 21044900,
          onDemandPrice: 0.2453,
        },
        {
          events: 10000000,
          unitPrice: 0.1962,
          price: 23163800,
          onDemandPrice: 0.2453,
        },
      ],
      spans: [
        {
          events: 10000000,
          unitPrice: 0.0,
          price: 0,
          onDemandPrice: 0.0,
        },
        {
          events: 20000000,
          unitPrice: 0.0002,
          price: 17300,
          onDemandPrice: 0.0002,
        },
        {
          events: 50000000,
          unitPrice: 0.0002,
          price: 69100,
          onDemandPrice: 0.0002,
        },
        {
          events: 100000000,
          unitPrice: 0.0002,
          price: 155500,
          onDemandPrice: 0.0002,
        },
        {
          events: 200000000,
          unitPrice: 0.0001,
          price: 306700,
          onDemandPrice: 0.0002,
        },
        {
          events: 300000000,
          unitPrice: 0.0001,
          price: 457900,
          onDemandPrice: 0.0002,
        },
        {
          events: 400000000,
          unitPrice: 0.0001,
          price: 609100,
          onDemandPrice: 0.0002,
        },
        {
          events: 500000000,
          unitPrice: 0.0001,
          price: 760300,
          onDemandPrice: 0.0002,
        },
        {
          events: 600000000,
          unitPrice: 0.0001,
          price: 911500,
          onDemandPrice: 0.0002,
        },
        {
          events: 700000000,
          unitPrice: 0.0001,
          price: 1062700,
          onDemandPrice: 0.0002,
        },
        {
          events: 800000000,
          unitPrice: 0.0001,
          price: 1213900,
          onDemandPrice: 0.0002,
        },
        {
          events: 900000000,
          unitPrice: 0.0001,
          price: 1365100,
          onDemandPrice: 0.0002,
        },
        {
          events: 1000000000,
          unitPrice: 0.0001,
          price: 1516300,
          onDemandPrice: 0.0002,
        },
        {
          events: 2000000000,
          unitPrice: 0.0001,
          price: 3028300,
          onDemandPrice: 0.0002,
        },
        {
          events: 3000000000,
          unitPrice: 0.0001,
          price: 4540300,
          onDemandPrice: 0.0002,
        },
        {
          events: 4000000000,
          unitPrice: 0.0001,
          price: 6052300,
          onDemandPrice: 0.0002,
        },
        {
          events: 5000000000,
          unitPrice: 0.0001,
          price: 7564300,
          onDemandPrice: 0.0002,
        },
        {
          events: 6000000000,
          unitPrice: 0.0001,
          price: 9076300,
          onDemandPrice: 0.0002,
        },
        {
          events: 7000000000,
          unitPrice: 0.0001,
          price: 10588300,
          onDemandPrice: 0.0002,
        },
        {
          events: 8000000000,
          unitPrice: 0.0001,
          price: 12100300,
          onDemandPrice: 0.0002,
        },
        {
          events: 9000000000,
          unitPrice: 0.0001,
          price: 13612300,
          onDemandPrice: 0.0002,
        },
        {
          events: 10000000000,
          unitPrice: 0.0001,
          price: 15124300,
          onDemandPrice: 0.0002,
        },
      ],
      monitorSeats: [
        {
          events: 1,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      uptime: [
        {
          events: 1,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      profileDurationUI: [
        {
          events: 0,
          unitPrice: 60.0,
          price: 0,
          onDemandPrice: 78.0,
        },
      ],
      attachments: [
        {
          events: 1,
          unitPrice: 25.0,
          price: 0,
          onDemandPrice: 31.25,
        },
        {
          events: 25,
          unitPrice: 25.0,
          price: 6500,
          onDemandPrice: 31.25,
        },
        {
          events: 50,
          unitPrice: 25.0,
          price: 13000,
          onDemandPrice: 31.25,
        },
        {
          events: 75,
          unitPrice: 25.0,
          price: 19400,
          onDemandPrice: 31.25,
        },
        {
          events: 100,
          unitPrice: 25.0,
          price: 25900,
          onDemandPrice: 31.25,
        },
        {
          events: 200,
          unitPrice: 25.0,
          price: 52900,
          onDemandPrice: 31.25,
        },
        {
          events: 300,
          unitPrice: 25.0,
          price: 79900,
          onDemandPrice: 31.25,
        },
        {
          events: 400,
          unitPrice: 25.0,
          price: 106900,
          onDemandPrice: 31.25,
        },
        {
          events: 500,
          unitPrice: 25.0,
          price: 133900,
          onDemandPrice: 31.25,
        },
        {
          events: 600,
          unitPrice: 25.0,
          price: 160900,
          onDemandPrice: 31.25,
        },
        {
          events: 700,
          unitPrice: 25.0,
          price: 187900,
          onDemandPrice: 31.25,
        },
        {
          events: 800,
          unitPrice: 25.0,
          price: 214900,
          onDemandPrice: 31.25,
        },
        {
          events: 900,
          unitPrice: 25.0,
          price: 241900,
          onDemandPrice: 31.25,
        },
        {
          events: 1000,
          unitPrice: 25.0,
          price: 268900,
          onDemandPrice: 31.25,
        },
      ],
      ...SEER_TIERS_ANNUAL,
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
  am3_t: {
    id: 'am3_t',
    name: 'Trial',
    description: '',
    price: 0,
    basePrice: 0,
    totalPrice: 0,
    trialPlan: null,
    maxMembers: 20,
    retentionDays: 90,
    isTestPlan: false,
    userSelectable: false,
    checkoutType: CheckoutType.STANDARD,
    features: AM3_TRIAL_FEATURES,
    billingInterval: MONTHLY,
    contractInterval: MONTHLY,
    onDemandEventPrice: 0,
    allowOnDemand: false,
    reservedMinimum: UNLIMITED_RESERVED,
    allowAdditionalReservedEvents: false,
    categories: AM3_CATEGORIES,
    checkoutCategories: AM3_CHECKOUT_CATEGORIES,
    availableCategories: AM3_CATEGORIES,
    onDemandCategories: AM3_ONDEMAND_CATEGORIES,
    hasOnDemandModes: false,
    budgetTerm: BUDGET_TERM,
    planCategories: {
      errors: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      replays: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      attachments: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      monitorSeats: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      uptime: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      spans: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
      profileDuration: [
        {
          events: 0,
          unitPrice: 0,
          price: 0,
          onDemandPrice: 0,
        },
      ],
    },
    categoryDisplayNames: AM3_CATEGORY_DISPLAY_NAMES,
    availableReservedBudgetTypes: AM3_AVAILABLE_RESERVED_BUDGET_TYPES,
  },
};

export default AM3_PLANS;
